package com.hgw.Demo06_CompositePattern.Exercises11_7_5;

/**
 * Data time:2021/12/15 17:01
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        AbstractFile office1,office2,staff1,staff2,staff3;
        office1 = new Office("北京总部");
        office2 = new Office("杭州分部");
        staff1 = new OfficeStaff("北京老总");
        staff2 = new OfficeStaff("杭州组长");
        staff3 = new OfficeStaff("杭州组员");

        office2.add(staff2);
        office2.add(staff3);

        office1.add(staff1);
        office1.add(office2);

        office1.operation();
    }
}
